let data={
    msg:{
        name:"zjr",
        id:"1903010347",
        class:"19级应用3-3班"
    },
  ImgColor:['#008080','#800080','#1E90FF','#00CD00'],
    ImgSrc:['TUP/tp01.jpg','TUP/tp02.jpg','TUP/tp03.jpg','TUP/tp04.jpg']
}
let NEWEle=document.createElement('img')



console.log(data)
console.log(document.getElementsByClassName("itemdiv"))
let tempdiv=document.querySelectorAll('#div1 div')
console.log(tempdiv[0].textContent)
tempdiv[0].textContent = data.msg.class
tempdiv[1].textContent = data.msg.id
tempdiv[2].textContent = data.msg.name

let tempdiv2=document.querySelectorAll('#div2 div')
console.log(tempdiv2)

tempdiv2[0].style.background =data.ImgColor[0];
tempdiv2[1].style.background =data.ImgColor[1];
tempdiv2[2].style.background =data.ImgColor[2];
tempdiv2[3].style.background =data.ImgColor[3];



NEWEle.src=data.ImgSrc[0]
console.log(NEWEle)
let Ele=document.querySelectorAll('#div3 div')

console.log(Ele)
Ele[0].textContent=''
Ele[0].appendChild(NEWEle)
